//202302104036崔晓涵
package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.Student;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;

import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.SQLException;

public interface StudentDao {
    boolean add(Connection connection, Student student)
            throws SQLException, BaseException, InvocationTargetException;

    boolean delete(Connection connection, Long id)
            throws  SQLException, BaseException, InvocationTargetException;

    Student findByid(Connection connection, Long id) throws SQLException, BaseException, InvocationTargetException;


}
